package com.senven.branch.controller;

import com.senven.branch.service.IBusinessTypeService;
import com.senven.common.vo.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wt
 * @since 2022-09-05
 */
@RestController
@RequestMapping("/branch/businessType")
public class BusinessTypeController {

    @Autowired
    private IBusinessTypeService businessTypeService;

    @PostMapping("/findAllbusinesstype")
    public CommonResult findAllBusinessType(){
        CommonResult result = businessTypeService.findAllBusinessType();
        return result;
    }
}
